package com.ittao.taopicture.infrastructure.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ittao.taopicture.domain.user.entity.User;
import com.ittao.taopicture.domain.user.repository.UserRepository;
import com.ittao.taopicture.infrastructure.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * 用户仓储实现
 */
@Service
public class UserRepositoryImpl extends ServiceImpl<UserMapper, User> implements UserRepository {

    @Override
    public User selectIgnoreLogicDelete(String userAccount) {
        return this.baseMapper.selectIgnoreLogicDelete(userAccount);
    }

    @Override
    public int updateIgnoreLogicDelete(User user) {
        return this.baseMapper.updateIgnoreLogicDelete(user);
    }
}
